//导入vue
import Vue from 'vue'

// 导入组件
import app from './App.vue'
import infoIcon from './subcom/infoIcon.vue'


// 导入jquery

// 导入路由
import VueRouter from 'vue-router'

//导入mui
import './lib/mui/dist/css/mui.css'
import './lib/mui/dist/js/mui.js'
import './lib/mui/dist/fonts/mui.ttf'

//引入animate.css
import 'animate.css/animate.css'
// 导入bootstrap3
import 'bootstrap/dist/css/bootstrap.css'

//引入mintui 的组件
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

// 全局导入vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
import { Lazyload } from 'vant';
Vue.use(Lazyload, {
    lazyComponent: true,
    loading: "src/images/loading.jpeg"
});



//手动安装路由
Vue.use(VueRouter)

//配置vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
//配置vue-resource根路径
Vue.http.options.root = 'http://106.55.165.19:3000';
// Vue.http.options.root = 'http://localhost:3000';
// Vue.http.options.root = 'http://couldmusic.free.idcfengye.com';
//配置全局emulateJSON
Vue.http.options.emulateJSON = true;
//接收向外暴露的路由对象
import router from './router.js'

//注册全局组件
Vue.component("info-icon", infoIcon)



var vm = new Vue({
    el: "#app",
    render: c => c(app),
    router: router
})